<?php
	function mysqlName($name){
		$sql="select * from users WHERE phone='$name'";
		$mysqlInfo=get_all($sql);
		return $mysqlInfo;
	}
	function mysqluser($names){
		$sql="select * from users WHERE xlsxName='$names'";
		$mysqlInfo=get_all($sql);
		return $mysqlInfo;
	}
	function addOne(){
		global $registerInfo;
		global $names;
		global $conn;
		$enterpriseName = $registerInfo['enterpriseName'];
		$user = $registerInfo['user'];
		$password = $registerInfo['password'];
		$time = date('Y-m-d');
		$sql = "INSERT INTO `users` (`id`, `phone`, `password`, `name`, `enterpriseName`, `userVip`, `xlsxName`, `registerTime`) VALUES (NULL, '$user', '$password', '$enterpriseName', '$enterpriseName', '0', '$names', '$time');";
		if ($conn->query($sql) === TRUE) {
            $a = 0;
			return $a;
        } else {
			$a = 1;
			return $a;
		};
		return $time;
	}
	
	
	









?>